package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class SpringFirstDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringFirstDemoApplication.class, args);
//		ApplicationContext context  = SpringApplication.run(SpringFirstDemoApplication.class, args);
//		UserService serviece = context.getBean(UserService.class);
//		Service userService = context.getBean(Service.class);
//		serviece.say();
//		User user1 = (User) context.getBean("user1");
//		User user2 = (User) context.getBean("user2");
//		System.out.println(user1);
//		System.out.println(user2);
//		userService.say();

	}


}
